package com.neuedu.wemall.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
/**
* Author lu
* Date  2025-09-08 15:17:25
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Alias("roleMenu")
@TableName(value = "role_menu")
public class RoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *菜单权限
    */
    @TableField(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
    * 角色ID
    */
    @TableField(value = "role_id")
    private Integer roleId;
    /**
    * 菜单ID
    */
    @TableField(value = "menu_id")
    private Integer menuId;
}